package com.ruoyi.house.crawling.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 爬取安居客租房信息记录对象 house_crawling_anjuke_record
 * 
 * @author ruoyi
 * @date 2024-06-20
 */
public class CrawlingAnjukeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 使用的cookie */
    @Excel(name = "使用的cookie")
    private String useCookie;

    /** 使用的user-agent */
    @Excel(name = "使用的user-agent")
    private String useUseragent;

    /** 爬取的城市 */
    @Excel(name = "爬取的城市")
    private String crawlingCity;

    /** 主页面url */
    @Excel(name = "主页面url")
    private String primaryPageUrl;

    /** 页码 */
    @Excel(name = "页码")
    private Long pageNumber;

    /** 爬取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "爬取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crawlingTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUseCookie(String useCookie) 
    {
        this.useCookie = useCookie;
    }

    public String getUseCookie() 
    {
        return useCookie;
    }
    public void setUseUseragent(String useUseragent) 
    {
        this.useUseragent = useUseragent;
    }

    public String getUseUseragent() 
    {
        return useUseragent;
    }
    public void setCrawlingCity(String crawlingCity) 
    {
        this.crawlingCity = crawlingCity;
    }

    public String getCrawlingCity() 
    {
        return crawlingCity;
    }
    public void setPrimaryPageUrl(String primaryPageUrl) 
    {
        this.primaryPageUrl = primaryPageUrl;
    }

    public String getPrimaryPageUrl() 
    {
        return primaryPageUrl;
    }
    public void setPageNumber(Long pageNumber)
    {
        this.pageNumber = pageNumber;
    }

    public Long getPageNumber()
    {
        return pageNumber;
    }
    public void setCrawlingTime(Date crawlingTime) 
    {
        this.crawlingTime = crawlingTime;
    }

    public Date getCrawlingTime() 
    {
        return crawlingTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("useCookie", getUseCookie())
            .append("useUseragent", getUseUseragent())
            .append("crawlingCity", getCrawlingCity())
            .append("primaryPageUrl", getPrimaryPageUrl())
            .append("pageNumber", getPageNumber())
            .append("crawlingTime", getCrawlingTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
